home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / tools / gcc / ixm-sdk.lha / man / cat2 / uname.0 < prev    next >
Encoding:
Text File  |  1995-12-23  |  1.5 KB  |  55 lines

  1.  
  2.  
  3.  
  4. uname(2)              UNIX Programmer's Manual            uname(2)
  5.  
  6.  
  7. NAME
  8.        uname - Gets the name of the current system
  9.  
  10. SYNOPSIS
  11.        #include <sys/utsname.h>
  12.  
  13.        int
  14.        uname (struct utsname *name);
  15.  
  16. PARAMETERS
  17.        Points to a utsname structure.
  18.  
  19. DESCRIPTION
  20.        The  uname()  function  stores information identifying the
  21.        current system in the structure pointed    to  by    the  name
  22.        parameter.
  23.  
  24.        The  uname() function uses the utsname structure, which is
  25.        defined in the sys/utsname.h file and contains the follow-
  26.        ing members:
  27.         char sysname[__SYS_NMLN];
  28.         char nodename[__SYS_NMLN];
  29.         char release[__SYS_NMLN];
  30.         char version[__SYS_NMLN];
  31.         char machine[__SYS_NMLN];
  32.  
  33.        The  uname()  function returns a null-terminated character
  34.        string naming the current system in the sysname    character
  35.        array.  The nodename array contains the name that the sys-
  36.        tem is known by on a communications network.  The  release
  37.        and  version  arrays  further  identify    the  system.  The
  38.        machine array identifies the CPU hardware being used.
  39.  
  40. RETURN VALUES
  41.        Upon  successful  completion,  a  nonnegative   value   is
  42.        returned.   Otherwise,  -1 is returned and errno is set to
  43.        indicate the error.
  44.  
  45. ERRORS
  46.        If the uname() function fails, errno may  be  set  to  the
  47.        following  value:
  48.  
  49.     [EFAULT]  The name parameter points outside of the process
  50.           address space.
  51.  
  52. RELATED INFORMATION
  53.  
  54.        Commands: uname(1)
  55.